Optimal. Leaf size=284 \[ \frac {16 a^2 (336 A+374 B+429 C) \sin (c+d x)}{3465 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {8 a^2 (336 A+374 B+429 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{3465 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (336 A+374 B+429 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{1155 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (84 A+110 B+99 C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+11 B) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{99 d}+\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.61, antiderivative size = 284, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {4350, 4171,
4102, 4100, 3890, 3889} \begin {gather*} \frac {2 a^2 (84 A+110 B+99 C) \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{693 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a^2 (336 A+374 B+429 C) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{1155 d \sqrt {a \sec (c+d x)+a}}+\frac {8 a^2 (336 A+374 B+429 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{3465 d \sqrt {a \sec (c+d x)+a}}+\frac {16 a^2 (336 A+374 B+429 C) \sin (c+d x)}{3465 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {2 a (3 A+11 B) \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}{99 d}+\frac {2 A \sin (c+d x) \cos ^{\frac {9}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}{11 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3889
Rule 3890
Rule 4100
Rule 4102
Rule 4171
Rule 4350
Rubi steps
\begin {align*} \int \cos ^{\frac {11}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac {11}{2}}(c+d x)} \, dx\\ &=\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{3/2} \left (\frac {1}{2} a (3 A+11 B)+\frac {1}{2} a (6 A+11 C) \sec (c+d x)\right )}{\sec ^{\frac {9}{2}}(c+d x)} \, dx}{11 a}\\ &=\frac {2 a (3 A+11 B) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{99 d}+\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d}+\frac {\left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (84 A+110 B+99 C)+\frac {3}{4} a^2 (24 A+22 B+33 C) \sec (c+d x)\right )}{\sec ^{\frac {7}{2}}(c+d x)} \, dx}{99 a}\\ &=\frac {2 a^2 (84 A+110 B+99 C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+11 B) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{99 d}+\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d}+\frac {1}{231} \left (a (336 A+374 B+429 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a^2 (336 A+374 B+429 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{1155 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (84 A+110 B+99 C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+11 B) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{99 d}+\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d}+\frac {\left (4 a (336 A+374 B+429 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{1155}\\ &=\frac {8 a^2 (336 A+374 B+429 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{3465 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (336 A+374 B+429 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{1155 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (84 A+110 B+99 C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+11 B) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{99 d}+\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d}+\frac {\left (8 a (336 A+374 B+429 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{3465}\\ &=\frac {16 a^2 (336 A+374 B+429 C) \sin (c+d x)}{3465 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {8 a^2 (336 A+374 B+429 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{3465 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (336 A+374 B+429 C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{1155 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a^2 (84 A+110 B+99 C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{693 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (3 A+11 B) \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{99 d}+\frac {2 A \cos ^{\frac {9}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{11 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.19, size = 158, normalized size = 0.56 \begin {gather*} \frac {a \sqrt {\cos (c+d x)} (55482 A+59158 B+65208 C+(34734 A+44 (799 B+759 C)) \cos (c+d x)+8 (1743 A+1507 B+1287 C) \cos (2 (c+d x))+4935 A \cos (3 (c+d x))+3740 B \cos (3 (c+d x))+1980 C \cos (3 (c+d x))+1470 A \cos (4 (c+d x))+770 B \cos (4 (c+d x))+315 A \cos (5 (c+d x))) \sqrt {a (1+\sec (c+d x))} \tan \left (\frac {1}{2} (c+d x)\right )}{27720 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 187, normalized size = 0.66
method | result | size |
default | \(-\frac {2 a \left (-1+\cos \left (d x +c \right )\right ) \left (315 A \left (\cos ^{5}\left (d x +c \right )\right )+735 A \left (\cos ^{4}\left (d x +c \right )\right )+385 B \left (\cos ^{4}\left (d x +c \right )\right )+840 A \left (\cos ^{3}\left (d x +c \right )\right )+935 B \left (\cos ^{3}\left (d x +c \right )\right )+495 C \left (\cos ^{3}\left (d x +c \right )\right )+1008 A \left (\cos ^{2}\left (d x +c \right )\right )+1122 B \left (\cos ^{2}\left (d x +c \right )\right )+1287 C \left (\cos ^{2}\left (d x +c \right )\right )+1344 A \cos \left (d x +c \right )+1496 B \cos \left (d x +c \right )+1716 C \cos \left (d x +c \right )+2688 A +2992 B +3432 C \right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{3465 d \sin \left (d x +c \right )}\) | \(187\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 862 vs.
\(2 (248) = 496\).
time = 0.68, size = 862, normalized size = 3.04 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.46, size = 154, normalized size = 0.54 \begin {gather*} \frac {2 \, {\left (315 \, A a \cos \left (d x + c\right )^{5} + 35 \, {\left (21 \, A + 11 \, B\right )} a \cos \left (d x + c\right )^{4} + 5 \, {\left (168 \, A + 187 \, B + 99 \, C\right )} a \cos \left (d x + c\right )^{3} + 3 \, {\left (336 \, A + 374 \, B + 429 \, C\right )} a \cos \left (d x + c\right )^{2} + 4 \, {\left (336 \, A + 374 \, B + 429 \, C\right )} a \cos \left (d x + c\right ) + 8 \, {\left (336 \, A + 374 \, B + 429 \, C\right )} a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{3465 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\cos \left (c+d\,x\right )}^{11/2}\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________